/// WriteoffOrderPageByTeamIdRequestDto
class WriteoffOrderPageByTeamIdRequestDto {
  /// 当前页 默认 1
  final int? pageNum;
  /// 每页记录数 默认 10
  final int? pageSize;
  /// 核销代理团队ID
  final int agencyTeamId;
  /// 核销结果，1通过，0拒绝，2未处理
  final int? writeoffResult;
  /// 上传时间-开始
  final String? uploadTimeBegin;
  /// 上传时间-截止
  final String? uploadTimeEnd;

  WriteoffOrderPageByTeamIdRequestDto({
    this.pageNum,
    this.pageSize,
    required this.agencyTeamId,
    this.writeoffResult,
    this.uploadTimeBegin,
    this.uploadTimeEnd,
  });

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    if (pageNum != null) data['pageNum'] = pageNum;
    if (pageSize != null) data['pageSize'] = pageSize;
    data['agencyTeamId'] = agencyTeamId;
    if (writeoffResult != null) data['writeoffResult'] = writeoffResult;
    if (uploadTimeBegin != null) data['uploadTimeBegin'] = uploadTimeBegin;
    if (uploadTimeEnd != null) data['uploadTimeEnd'] = uploadTimeEnd;
    return data;
  }

  factory WriteoffOrderPageByTeamIdRequestDto.fromJson(Map<String, dynamic> json) {
    return WriteoffOrderPageByTeamIdRequestDto(
      pageNum: json['pageNum'],
      pageSize: json['pageSize'],
      agencyTeamId: json['agencyTeamId'],
      writeoffResult: json['writeoffResult'],
      uploadTimeBegin: json['uploadTimeBegin'],
      uploadTimeEnd: json['uploadTimeEnd'],
    );
  }
}